import { BrowserRouter, Switch, Route, Redirect } from 'react-router-dom';
import Todo from '@/pages/Todo';
import './App.less';
import { Provider } from 'react-redux';
import store from './store';

function App() {
  return (
    <Provider store={store}>
      <BrowserRouter>
        <Switch>
          <Route path="/todo" component={Todo} />
          <Redirect from="/" to="/todo" />
        </Switch>
      </BrowserRouter>
    </Provider>
  );
}

export default App;
